package com.example.d15_homework.homework01;

/**
 * 父类
 */
public class People {
    private String name; // 姓名
    private String jobNumber; // 工号
    private double salary; // 工资

    public People() {
    }

    public People(String name, String jobNumber, double salary) {
        this.name = name;
        this.jobNumber = jobNumber;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public void work() {
        System.out.println("工作");
    }
}
